﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MudEngine
{
	public class TcpMessage
	{
        /// <summary>
        /// 
        /// </summary>
        private string _message;
        /// <summary>
        /// 
        /// </summary>
        private DateTime _timestamp;
		/// <summary>
		/// 
		/// </summary>
        private TcpConnection _connection;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="message"></param>
        /// <param name="length"></param>
        public TcpMessage(TcpConnection origin, string message)
        {
            this._connection = origin;
            this._message = message;

            this._timestamp = new DateTime();
        }
        /// <summary>
        /// 
        /// </summary>
        public string Message
        {
            get
            {
                return this._message;
            }
        }
		/// <summary>
		/// 
		/// </summary>
		public TcpConnection Connection
		{
			get
			{
				return this._connection;
			}
		}
        /// <summary>
        /// 
        /// </summary>
        public DateTime Timestamp
        {
            get
            {
                return this._timestamp;
            }
        }
	}
}
